﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LCA.Community.DAL.Model;

namespace LCA.Community.DAL.Test.ModelFactories
{
    public class UsersFactory
    {
        int _count = 0;

        public UsersFactory()
        {

        }

        public User CreateEntity()
        {
            var user = new User(
                            String.Format("liveid{0}@hotmail.com",_count),
                            String.Format("test.{0}", Guid.NewGuid()),
                            String.Format("First Name{0}",_count),
                            String.Format("Last Name {0}", _count),
                            true,
                            20,
                            String.Format("City {0}",_count),
                            String.Format("Country {0}", _count),
                            String.Format("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam felis ante, tincidunt et hendrerit a, venenatis sit amet nibh. Sed ut leo sapien, laoreet iaculis velit. Vestibulum vehicula tempor mi, in interdum massa congue id. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec lorem libero, ultrices eu bibendum placerat, ullamcorper at nisl. Vivamus ac nulla vel lacus venenatis adipiscing. Proin lacinia, nunc sed mattis tristique, ipsum risus vehicula tortor, vel dictum neque eros id odio. Donec at arcu justo. Maecenas vestibulum purus ac eros mollis at accumsan lacus tempus. Integer euismod accumsan volutpat. Quisque porta aliquam sem, eget sollicitudin massa pulvinar vitae. Suspendisse tristique nunc nec ligula cursus posuere. In faucibus aliquet erat tempor bibendum."),
                            String.Format("http://www.website.com"),
                            String.Format("user{0}@domain.com",_count),
                            String.Format("avatar.jpg"),
                            String.Format("http://www.hospital.com"),
                            false,
                            true);
            ++_count;
            return user;
        }

        public List<User> CreateList(int count)
        {
            var users = new List<User>();

            for (int i = 0; i < count; i++)
            {
                users.Add(CreateEntity());
            }

            return users;
        }
    }
}
